<%--
  Created by IntelliJ IDEA.
  User: keke
  Date: 2021/12/6
  Time: 16:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="lk">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户登录</title>
    <link rel="stylesheet" href="assets/css/login.css">
    </head>
</head>
<body>
<h1>用户登录</h1>
<form class="login-container" action="/LKlogin" method="post">
    <div class="login-item">
        <label>登录账号：</label>
        <input name="u" type="text" id="username"/>
    </div>
    <div class="login-item">
        <label>登录密码：</label>
        <input name="p" type="password" id="password"/>
    </div>
    <div class="login-item">
        <label>验证码：</label>
        <input name="c" type="text" class="login-code"/>
        <img src="/Lkcode" id="ll"/>
        <a href="javascript:void(0)" onclick="changecode()">看不清？</a>
    </div>
    <div class="login-item">
        <button> 登录 </button>
    </div>
</form>
</body>
<script>
    function changecode(){
        ll.src="/Lkcode?t="+Math.random();
    }
</script>
</html>
